const DEFAULTPAGESIZE = 20

enum pageOpeTypeEnum {
  'add' = 'add',
  'edit' = 'edit',
  'detail' = 'detail'
}

enum handleTypeEnum {
  '人脸设备' = 1,
  '插卡设备' = 2,
  '扫码' = 3,
  '删除司机' = 4,
  '删除车辆' = 5,
  '司机退出' = 6,
  '被他人顶岗' = 7,
  '星软离岗' = 8
}

//运力类型
const coopTypeOptions = [
  {
    value: 51,
    label: '自有运力'
  },
  {
    value: 52,
    label: '外协运力'
  }
]

// 燃料类型
const fuelTypeOptions = [
  {
    value: '柴油',
    label: '柴油'
  },
  {
    value: '汽油',
    label: '汽油'
  },
  {
    value: '天然气',
    label: '天然气'
  },
  {
    value: '混动',
    label: '混动'
  }
]

// 排放标准
const emissionStandardOptions = [
  {
    value: '国一',
    label: '国一'
  },
  {
    value: '国二',
    label: '国二'
  },
  {
    value: '国三',
    label: '国三'
  },
  {
    value: '国六',
    label: '国六'
  }
]

// 新车/二手车
const purchaseTypeOptions = [
  {
    value: '新车',
    label: '新车'
  },
  {
    value: '二手车',
    label: '二手车'
  }
]

// 上传默认文件夹
const UPNOTICE = 'notice'
// 年月日
const DEFAULTDATEFORMAT = 'YYYY-MM-DD'
const DEFAULTDATEFORMATTIME = 'YYYY-MM-DD HH:mm:ss'

//
const CAPACITYCARTYPES = [
  {
    key: -1,
    label: '全部'
  },
  {
    key: 51,
    label: '自有'
  },
  {
    key: 52,
    label: '外协'
  },
  {
    key: 0,
    label: '未分配'
  }
]

// 使用性质
const useNatureOptions = [
  { label: '营运车辆', value: '营运车辆' },
  { label: '非营运', value: '非营运' },
  { label: '营运特种车', value: '营运特种车' },
  { label: '非营运特种车', value: '非营运特种车' }
]

//------详情页布局-----

const pageDetailColSpan = {
  xs: {
    span: 12
  },
  sm: {
    span: 12
  },
  md: {
    span: 12
  },
  lg: {
    // 屏幕 ≥ 992px
    span: 8
  },
  xl: {
    span: 8
  },
  xxl: {
    span: 8
  }
}

const pageDetailColSpans = {
  xs: {
    span: 12
  },
  sm: {
    span: 12
  },
  md: {
    span: 12
  },
  lg: {
    // 屏幕 ≥ 992px
    span: 12
  },
  xl: {
    span: 12
  },
  xxl: {
    span: 12
  }
}
const pageDetailRowGutter = {
  xs: 16,
  sm: 16,
  md: 16,
  lg: 25,
  xl: 25,
  xxl: 25
}

const pageDetailLabelCol = {
  xs: { span: 8 },
  sm: { span: 8 },
  md: { span: 8 },
  lg: { span: 8 },
  xl: { span: 8 },
  xxl: { span: 8 }
}

const pageDetailWrapperCol = {
  xs: { span: 16 },
  sm: { span: 16 },
  md: { span: 16 },
  lg: { span: 16 },
  xl: { span: 16 },
  xxl: { span: 16 }
}

const newCarjiankong = 'https://data.gpskk.com:4011//#/McComAllCar_4010' //车辆监控新的公共的
const newCarjiankong2 = 'https://v8.xingruan.net/ym/#/JKZX_40' //车辆监控第二版，参考车辆监控模块

const inputNumberMaxNum = 99999999

// 尺寸大小 - 参考antd的gird布局
const screenWidth = {
  xxl: 1600,
  xl: 1200,
  lg: 992,
  md: 768,
  sm: 576
}

// ui设计图的物理像素（用于数据大屏）
const UIWIDTH = 1920
const UIHEIGHT = 1080

export {
  CAPACITYCARTYPES,
  DEFAULTDATEFORMAT,
  DEFAULTDATEFORMATTIME,
  DEFAULTPAGESIZE,
  UIHEIGHT,
  UIWIDTH,
  UPNOTICE,
  coopTypeOptions,
  emissionStandardOptions,
  fuelTypeOptions,
  handleTypeEnum,
  inputNumberMaxNum,
  newCarjiankong,
  newCarjiankong2,
  pageDetailColSpan,
  pageDetailColSpans,
  pageDetailLabelCol,
  pageDetailRowGutter,
  pageDetailWrapperCol,
  pageOpeTypeEnum,
  purchaseTypeOptions,
  screenWidth,
  useNatureOptions
}
